package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbOutGoosDao;
import com.gtw.modules.entity.TbOutGoos;
import com.gtw.modules.sys.service.TbOutGoosService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by wuye on 2018/3/26.
 */
@Service
public class TbOutGoosServiceImpl implements TbOutGoosService {

    @Autowired
    private TbOutGoosDao outgoosDao;

    @Override
    public TbOutGoos queryObject(Integer id){
        return outgoosDao.queryObject(id);
    }

    @Override
    public List<TbOutGoos> queryList(Map<String, Object> map){
        return outgoosDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return outgoosDao.queryTotal(map);
    }

    @Override
    public void save(TbOutGoos outgoos){
        outgoosDao.save(outgoos);
    }

    @Override
    public void update(TbOutGoos outgoos){
        outgoosDao.updateByPrimaryKey(outgoos);
    }

    @Override
    public void delete(Integer id){
        outgoosDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        outgoosDao.deleteBatch(ids);
    }

    @Override
    public  List<TbOutGoos> foundByUserId(Integer userid) {
        return outgoosDao.foundByUserId(userid);
    }
}
